package scenic.swing;

import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JRootPane;

import scenic.ScenicJFrame;

public class ScenicRootPane extends JRootPane {
	private static final long serialVersionUID = 166500718590077685L;
	
	ScenicJFrame frame;
	
	public ScenicRootPane(ScenicJFrame frame) {
		this.frame = frame;
	}
	
	public Graphics2D getGraphics() {
		return frame.getGraphics();
	}

	public void paint(Graphics g) {
		paintChildren(g);
	}

}
